package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 预出库台账
 * @Author: jeecg-boot
 * @Date:   2022-06-24
 * @Version: V1.0
 */
@Data
@TableName("t_flower_tagpre")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="t_flower_tagpre对象", description="预出库台账")
public class FlowerTagpre implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**来源基地*/
    @Excel(name = "来源基地", width = 15 , dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源基地")
    private String sourceBase;
    /**来源大棚*/
    @Excel(name = "来源大棚", width = 15 , dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源大棚")
    private String sourceGreenhouse;

    @Excel(name = "库房", width = 15, dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;

    @Excel(name = "成本中心", width = 15, dicCode = "ch_cost")
    @Dict(dicCode = "ch_cost")
    @ApiModelProperty(value = "成本中心")
    private String cost;

    /**产品*/
	@Excel(name = "产品", width = 15)
    @ApiModelProperty(value = "产品")
    private String variety;

	/**品种编码*/
	@Excel(name = "品种编码", width = 15)
    @ApiModelProperty(value = "品种编码")
    private String varietyCode;

	/**打包规格*/
	@Excel(name = "打包规格", width = 15)
    @ApiModelProperty(value = "打包规格")
    private String packingSpecifications;
	/**等级*/
	@Excel(name = "等级", width = 15 ,type = 4)
    @ApiModelProperty(value = "等级")
    private String classes;

	/**预库存*/
    @TableField(exist = false)
	@Excel(name = "预库存", width = 15 ,type = 4)
    @ApiModelProperty(value = "预库存")
    private String num;

	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String flowerPoleLength;
	/**分拣员*/
//	@Excel(name = "分拣员", width = 15)
    @ApiModelProperty(value = "分拣员")
    private String sorter;

    //渠道
    @Excel(name = "渠道", width = 15,dicCode = "ch_channel")
    @Dict(dicCode = "ch_channel")
    @ApiModelProperty(value = "渠道")
    private String channel;

    //账号
    @Excel(name = "账号", width = 15,dicCode = "ch_account_no")
    @Dict(dicCode = "ch_account_no")
    @ApiModelProperty(value = "账号")
    private String accountno;

	/**分拣日期*/
	@Excel(name = "分拣日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "分拣日期")
    private Date sortTime;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;
	/**更新人*/
//	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateUser;
	/**状态( 预出库(1),已出库(2)，损耗3，已删除9)*/
//	@Excel(name = "状态( 预出库(1),已出库(2)，损耗3，已删除9)", width = 15)
    @ApiModelProperty(value = "状态( 预出库(1),已出库(2)，损耗3，-2删除 )")
    private Integer state;
	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "出库时间")
    private Date stockInTime;
	/**入库时间*/
	@Excel(name = "入库时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入库时间")
    private Date stockOutTime;
	/**入库人*/
	@Excel(name = "入库人", width = 15)
    @ApiModelProperty(value = "入库人")
    private String stockInUser;
	/**出库人*/
	@Excel(name = "出库人", width = 15)
    @ApiModelProperty(value = "出库人")
    private String stockOutUser;
	/**台账表id*/
//	@Excel(name = "台账表id", width = 15)
    @ApiModelProperty(value = "台账表id")
    private String inId;


    /**出库单子表id*/
//    @Excel(name = "出库单子表id", width = 15)
    @ApiModelProperty(value = "出库单子表id")
    private String outorderId;

    /**销售确认单子表id*/
//    @Excel(name = "销售确认单子表id", width = 15)
    @ApiModelProperty(value = "销售确认单子表id")
    private String preSureId;
}
